<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">

  <xi:include href="tb-master.html" />

<head>
	<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
  	<title></title>

</head>
<body>
	<div id="tabs">
		<ul>
			<li><h3><a href="#tabs-field">1. Field</a></h3></li>
		</ul>
		<div >
		<div class="float_left"  style="width:45%">
			<fieldset >
			<legend><strong>Form Upload Photos</strong></legend>
			 <table >
			 	<tbody>
			     <tr py:for="field in tmpl_context.postype_form.fields()" >
			     	<th >${field.label_text}</th>
			     	<td>${getattr(posttype, field.name)}</td>
			    </tr>
			    </tbody>
			  </table>
			 </fieldset>
		</div>
		<div class="float_left" style="width:45%">
			<fieldset >
			<legend><strong>Form Upload Photos</strong></legend>
			${tmpl_context.field_form(dict(fieldkey_posttype_id=posttype.id))}
			</fieldset>
		</div>
		<div id="toolbox_clear" />
		</div>
		 <table >
		 	<thead>
		     <tr>
		     	<th py:for="field in tmpl_context.field_form.fields()" >${field.label_text}</th>
		    </tr>
		    </thead>
		    <tbody>
		    	<tr py:for="f in posttype.fieldkeys">
		    		<td py:for="field in tmpl_context.field_form.fields()">${getattr(f, field.name)}</td>
		    	</tr>
		    </tbody>
		  </table>
	</div>
</body>
</html>
